package com.taiyuan.zfmvp.controller.testInterupt;

/**
 * @param
 * @Author: zhoufang@si-tech.com.cn
 * @Descriiption:
 * @Date 2020/7/1
 * @return
 */
public class testInterrupt {

    public static void main(String[] args) {
        InterruptThread it = new InterruptThread();
        Thread t1 = new Thread(it);
        t1.setName("中断线程1");
        t1.start();
        try {
            Thread.sleep(10);
            t1.interrupt();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
